/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package thienphuc.patient.dao;

import java.util.List;
import thienphuc.patient.dto.NhanVien;

/**
 *
 * @author QuocDat
 */
public interface NhanVienDAO extends Dao<NhanVien, Integer> {
    public final static String NHAN_VIEN_MA_NHAN_VIEN = "maNhanVien";
    public final static String NHAN_VIEN_HO_TEN = "hoTen";
    public final static String NHAN_VIEN_PHAI = "phai";
    public final static String NHAN_VIEN_NAM_SINH = "namSinh";
    public final static String NHAN_VIEN_DIA_CHI = "diaChi";
    public final static String NHAN_VIEN_DIEN_THOAI = "dienThoai";
    public final static String NHAN_VIEN_CHU_KY = "chuKy";
    public final static String NHAN_VIEN_HINH_ANH = "hinhAnh";
    public final static String NHAN_VIEN_TEN_TAI_KHOAN = "tenTaiKhoan";
    public final static String NHAN_VIEN_MAT_KHAU = "matKhau";
    public final static String NHAN_VIEN_QUYEN = "quyen";
    public final static String NHAN_VIEN_TRANG_THAI_LAM_VIEC = "trangThaiLamViec";
    public final static String NHAN_VIEN_BENH_ANS = "benhAns";
    
    /**
     * Find NhanVien by TenTaiKhoan
     * @param tenTaiKhoan
     * @return 
     */
    NhanVien findByTenTaiKhoan(String tenTaiKhoan) throws Exception;
    
    /**
     * Find NhanVien by HoTen
     * @param hoTen
     * @return 
     */
    List<NhanVien> findByHoTen(String hoTen) throws Exception;
    
    /**
     * @param tenTaiKhoan
     * @param matKhau
     * @return 
     */
    NhanVien dangNhap(String tenTaiKhoan, String matKhau) throws Exception;
    
}
